package cn.mineserv.video.videoordersystem.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
import cn.mineserv.video.videoordersystem.model.FavoriteExample;
import cn.mineserv.video.videoordersystem.dao.FavoriteDao;
import cn.mineserv.video.videoordersystem.model.Favorite;
@Service
public class FavoriteService extends ServiceImpl<FavoriteDao, Favorite> {

    
    public long countByExample(FavoriteExample example) {
        return baseMapper.countByExample(example);
    }
    
    public int deleteByExample(FavoriteExample example) {
        return baseMapper.deleteByExample(example);
    }
    
    public List<Favorite> selectByExample(FavoriteExample example) {
        return baseMapper.selectByExample(example);
    }
    
    public int updateByExampleSelective(Favorite record,FavoriteExample example) {
        return baseMapper.updateByExampleSelective(record,example);
    }
    
    public int updateByExample(Favorite record,FavoriteExample example) {
        return baseMapper.updateByExample(record,example);
    }
    
    public int updateBatch(List<Favorite> list) {
        return baseMapper.updateBatch(list);
    }
    
    public int updateBatchSelective(List<Favorite> list) {
        return baseMapper.updateBatchSelective(list);
    }
    
    public int batchInsert(List<Favorite> list) {
        return baseMapper.batchInsert(list);
    }
    
    public int insertOrUpdate(Favorite record) {
        return baseMapper.insertOrUpdate(record);
    }
    
    public int insertOrUpdateSelective(Favorite record) {
        return baseMapper.insertOrUpdateSelective(record);
    }
}
